export interface MenuItem {
  selfid: number
  name: string
  pid: number
  url: string
  flag: number
  childs: MenuItem[]
}

export interface MenuResponse {
  msg: string
  data: {
    info_list: MenuItem[]
  }
}

export interface SystemUser {
  id: number
  username: string
}

export interface SystemUserResponse {
  msg: string
  data: {
    info_list: SystemUser[]
  }
}

export interface UpdateRightResponse {
  msg: string
  code: string
}

export interface UpdateRightParams {
  username: string
  menuid: number
  flag: number
}

export interface GetUserRightParams {
  username: string
} 